include('shared.lua')

ENT.RenderGroup 	= RENDERGROUP_BOTH

function ENT:Initialize()
	self.Glow = Material( "sprites/light_glow02_add" )
end

function ENT:Think()
	self.spriteColor = Color(0,0,255,200)
end

function ENT:Draw()	
	local renderoffset = self.Entity:GetPos()
	local rendereyes = LocalPlayer():EyePos()
	local rendernormal = (renderoffset - rendereyes):GetNormalized()
	render.SetMaterial( self.Glow )	
	render.DrawSprite( renderoffset - rendernormal * 2, 24, 24, rendercolor )
	self.Entity:DrawModel()
end

function ENT:DrawTranslucent( bDontDrawModel )
end
